Optimal. Leaf size=35 \[ -\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {646, 37} \begin {gather*} -\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 646
Rubi steps
\begin {align*} \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \frac {a b+b^2 x}{x^3} \, dx}{a b+b^2 x}\\ &=-\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 31, normalized size = 0.89 \begin {gather*} -\frac {\sqrt {(a+b x)^2} (a+2 b x)}{2 x^2 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 0.36, size = 108, normalized size = 3.09 \begin {gather*} \frac {\sqrt {a^2+2 a b x+b^2 x^2} \left (-a b-2 b^2 x\right )+\sqrt {b^2} \left (a^2+3 a b x+2 b^2 x^2\right )}{2 x^2 \left (a b+b^2 x\right )-2 \sqrt {b^2} x^2 \sqrt {a^2+2 a b x+b^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 11, normalized size = 0.31 \begin {gather*} -\frac {2 \, b x + a}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 39, normalized size = 1.11 \begin {gather*} -\frac {b^{2} \mathrm {sgn}\left (b x + a\right )}{2 \, a} - \frac {2 \, b x \mathrm {sgn}\left (b x + a\right ) + a \mathrm {sgn}\left (b x + a\right )}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 28, normalized size = 0.80 \begin {gather*} -\frac {\left (2 b x +a \right ) \sqrt {\left (b x +a \right )^{2}}}{2 \left (b x +a \right ) x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.41, size = 80, normalized size = 2.29 \begin {gather*} \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} b^{2}}{2 \, a^{2}} + \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} b}{2 \, a x} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}}}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 27, normalized size = 0.77 \begin {gather*} -\frac {\sqrt {{\left (a+b\,x\right )}^2}\,\left (a+2\,b\,x\right )}{2\,x^2\,\left (a+b\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.13, size = 12, normalized size = 0.34 \begin {gather*} \frac {- a - 2 b x}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________